Skip to content

Conversation

@bernie-laberge
Copy link
Contributor

604: Fix Blackmagic Video Output plugin build on Windows

Linked issues

Fixes #604

Summarize your change.

Added a post-install step in the BlackMagicDevice cmake file (bmd.cmake) to generate the DeckLinkAPI.h header file via midl.exe which is required to build the Blackmagic Video Output plugin on Windows.

Note that the BlackMagic SDK only provides .idl files on Windows (not .h header files). Since that we are building OpenRV in a non managed way, we need to generate a DesktopLinkAPI.h header file from the provided .idl files.

Describe the reason for the change.

The Blackmagic Video Output plugin build on Windows was broken.

Describe what you have tested and on which operating system.

Successfully tested on Windows.
Note that this commit is Windows specific so it should not impact any other OS.

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

Copy link
Contributor

@eloisebrosseau eloisebrosseau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo in the comment, but otherwise LGTM!

@bernie-laberge bernie-laberge merged commit bb5ea87 into AcademySoftwareFoundation:main Oct 18, 2024
11 checks passed
cedrik-fuoco-adsk pushed a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Nov 7, 2024
…ld on Windows (AcademySoftwareFoundation#605)

### 604: Fix Blackmagic Video Output plugin build on Windows

### Linked issues

Fixes AcademySoftwareFoundation#604

### Summarize your change.

Added a post-install step in the BlackMagicDevice cmake file (bmd.cmake)
to generate the DeckLinkAPI.h header file via midl.exe which is required
to build the Blackmagic Video Output plugin on Windows.

Note that the BlackMagic SDK only provides .idl files on Windows (not .h
header files). Since that we are building OpenRV in a non managed way,
we need to generate a DesktopLinkAPI.h header file from the provided
.idl files.

### Describe the reason for the change.

The Blackmagic Video Output plugin build on Windows was broken.

### Describe what you have tested and on which operating system.

Successfully tested on Windows.
Note that this commit is Windows specific so it should not impact any
other OS.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

Signed-off-by: Bernard Laberge <[email protected]>
Signed-off-by: Cédrik Fuoco <[email protected]>
cedrik-fuoco-adsk pushed a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Apr 25, 2025
…ld on Windows (AcademySoftwareFoundation#605)

### 604: Fix Blackmagic Video Output plugin build on Windows

### Linked issues

Fixes AcademySoftwareFoundation#604

### Summarize your change.

Added a post-install step in the BlackMagicDevice cmake file (bmd.cmake)
to generate the DeckLinkAPI.h header file via midl.exe which is required
to build the Blackmagic Video Output plugin on Windows.

Note that the BlackMagic SDK only provides .idl files on Windows (not .h
header files). Since that we are building OpenRV in a non managed way,
we need to generate a DesktopLinkAPI.h header file from the provided
.idl files.

### Describe the reason for the change.

The Blackmagic Video Output plugin build on Windows was broken.

### Describe what you have tested and on which operating system.

Successfully tested on Windows.
Note that this commit is Windows specific so it should not impact any
other OS.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

Signed-off-by: Bernard Laberge <[email protected]>
Signed-off-by: Cédrik Fuoco <[email protected]>
cedrik-fuoco-adsk pushed a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Apr 28, 2025
…ld on Windows (AcademySoftwareFoundation#605)

### 604: Fix Blackmagic Video Output plugin build on Windows

### Linked issues

Fixes AcademySoftwareFoundation#604

### Summarize your change.

Added a post-install step in the BlackMagicDevice cmake file (bmd.cmake)
to generate the DeckLinkAPI.h header file via midl.exe which is required
to build the Blackmagic Video Output plugin on Windows.

Note that the BlackMagic SDK only provides .idl files on Windows (not .h
header files). Since that we are building OpenRV in a non managed way,
we need to generate a DesktopLinkAPI.h header file from the provided
.idl files.

### Describe the reason for the change.

The Blackmagic Video Output plugin build on Windows was broken.

### Describe what you have tested and on which operating system.

Successfully tested on Windows.
Note that this commit is Windows specific so it should not impact any
other OS.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

Signed-off-by: Bernard Laberge <[email protected]>
Signed-off-by: Cédrik Fuoco <[email protected]>
cedrik-fuoco-adsk pushed a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Apr 28, 2025
…ld on Windows (AcademySoftwareFoundation#605)

### 604: Fix Blackmagic Video Output plugin build on Windows

### Linked issues

Fixes AcademySoftwareFoundation#604

### Summarize your change.

Added a post-install step in the BlackMagicDevice cmake file (bmd.cmake)
to generate the DeckLinkAPI.h header file via midl.exe which is required
to build the Blackmagic Video Output plugin on Windows.

Note that the BlackMagic SDK only provides .idl files on Windows (not .h
header files). Since that we are building OpenRV in a non managed way,
we need to generate a DesktopLinkAPI.h header file from the provided
.idl files.

### Describe the reason for the change.

The Blackmagic Video Output plugin build on Windows was broken.

### Describe what you have tested and on which operating system.

Successfully tested on Windows.
Note that this commit is Windows specific so it should not impact any
other OS.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

Signed-off-by: Bernard Laberge <[email protected]>
Signed-off-by: Cédrik Fuoco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot build Blackmagic Video Output plugin on Windows

3 participants